package com.mySampleApplication.server.database;

import com.mySampleApplication.client.User;

import java.util.Collection;

/**
 * Created by Navuhodonosor on 12/14/2014.
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public boolean add(User user) {
        return false;
    }

    @Override
    public void update(User user) {
        userDao.update(user);
    }

    @Override
    public Collection<User> getUsers(String search) {
        return userDao.getUsers(search);
    }

    @Override
    public void delete(User user) {
        userDao.delete(user);
    }
}
